﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Routing;
using System.Web.Mvc;

namespace NMA.Web.Core.Helper
{
    public class RegisterRouteHelper
    {
        public static void SetupRoutes(RouteCollection routes)
        {
            routes.MapRoute(
                "Poll",                                              // Route name
                "Admin/Poll/{action}",                           // URL with parameters
                new { action = "Index" }  // Parameter defaults
            );

            routes.MapRoute(
                "News",                                              // Route name
                "Admin/News/{action}",                           // URL with parameters
                new { action = "Index" }  // Parameter defaults
            );

            routes.MapRoute(
                "Category",                                              // Route name
                "Admin/Category/{action}",                           // URL with parameters
                new { action = "Index" }  // Parameter defaults
            );

            routes.MapRoute(
                "Admin",                                              // Route name
                "Admin/Account/{action}",                           // URL with parameters
                new { action = "Index" }  // Parameter defaults
            );
        }
    }
}